package service.impl;

import java.util.List;
import java.util.Map;

import model.Setting;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.SettingMapper;
import service.SettingService;
@Service
@SuppressWarnings("rawtypes")
public class SettingServiceImpl implements SettingService{
	@Autowired
	public SettingMapper settingMapper;

	@Override
	public List selectAll() {
		return settingMapper.selectAll();
	}

	@Override
	public int insert(Setting setting) {
		return settingMapper.insert(setting);
	}

	@Override
	public List selectAllByType(Map map) {
		return settingMapper.selectAllByType(map);
	}

	@Override
	public void deleteSetting(Integer sid) {
		settingMapper.deleteSetting(sid);
	}
}
